package com.newtype.meeting.client.service;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.newtype.meeting.client.model.MeetingCategory;

/**
 * 会议类别业务逻辑接口
 * @author 汪恭泽
 * Jun 13, 2011 10:39:24 AM
 */

@RemoteServiceRelativePath("categoryService")
public interface MeetingCategoryService extends RemoteService {
	public void saveCategory(MeetingCategory category);

	public void deleteCategory(String id);

	public MeetingCategory getCategory(String id);

	public ArrayList<MeetingCategory> getMainCategories();

	/** 一级会议类别 */
	public List<MeetingCategory> listCategory();

	/** 下级会议类别 */
	public List<MeetingCategory> listChildCategory(MeetingCategory category);
	/**
	 * 获得会议类别树形结构
	 * @return
	 */
	public MeetingCategory getCategoryTree();
	
	/**
	 * 获取所有下级菜单
	 * @return
	 */
	public List<MeetingCategory> listAllChildren();
}
